public class ForStatement {

	/**
	 *	Problem Statement:
	 *		Assume that user Enter a number 'n'. 
	 *		1.	print number from 1 to n
	 *		2.	print base numbers from 1 to n
	 *
	 * Note:
	 * 		Observe the logic written in second and third for loop
	 */
	
	public static void main(String []ars) {
		
		int n = 100;
		
		System.out.println("\nFirst For loop");
		for( int i=1; i<=n; i++) {
			System.out.print(i+" ");
		}
		
		System.out.println("\nSecond For loop");
		for(int j=1; j<n; j++) {
			if( j%2 ==0) {
				System.out.print(" "+ j);
			}
		}
		
		System.out.println("\nThird For loop");
		for(int k=1; k<n; ) {
			k +=2;
			System.out.print(" "+k);
		}
	}
}
